The Dreamweaver JavaScript API > History functions > dreamweaver.historyPalette.saveAsCommand() |
![]() ![]() ![]() |
dreamweaver.historyPalette.saveAsCommand()
Availability
Dreamweaver 3.0
Description
Opens the Save As Command dialog box, which lets the user save the specified steps as a command. Dreamweaver warns the user of possible unintended consequences if the steps include an unrepeatable action.
Arguments
arrayOfIndices
arrayOfIndices
is an array of position indexes in the History panel.
Returns
A string containing the JavaScript that corresponds to the specified history steps.
Enabler
None.
Example
The following code saves the fourth, sixth, and eighth steps in the History panel as a command:
dw.historyPalette.saveAsCommand([3,5,7]);
![]() ![]() ![]() |